<template>
	<view class="xueyapage">
		<view class="box">
			<view class="itemselect">
				<view class="itemtitle">
					收缩压/高压
				</view>
				<view class="pickerbox">
					<input type="number" placeholder="请输入高压" class="picker" v-model="gaoya" />
				</view>
			</view>
		</view>
		<view class="box">
			<view class="itemselect">
				<view class="itemtitle">
					舒张压/低压
				</view>
				<view class="pickerbox">
					<input type="number" placeholder="请输入低压"  class="picker" v-model="diya"/>
				</view>
			</view>
		</view>
		<view class="addbox">
			<image class="image" src="/static/image/魂牵梦萦f.jpg" mode=""></image>
			<view class="add"  @click="addpicture">
				<view class="fang">
					+
				</view>
				<view class="addtitle">
					添加测量照片
				</view>
			</view>
		</view>
		<view class="pagebtn">
			提交
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				gaoya:'',
				diya:'',
				list:[]
			}
		},
		mounted() {
			for (let i = 40; i <= 200; i++) {
			  this.list.push(i);
			}
		
		},
		methods: {
			bindPickerChange(e){
				this.gaoya=this.list[e.detail.value]
			},
			bindPickerChangediya(e){
				this.diya=this.list[e.detail.value]
			},
			addpicture(){
				uni.chooseImage({
					count: 1, //默认9
					sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图，默认二者都有
					sourceType: ['album'], //从相册选择
					success: function (res) {
						console.log(JSON.stringify(res.tempFilePaths));
					}
				});
			},
		}
	}
</script>

<style lang="less" scoped>
	.xueyapage{
		width: 100%;
		.box{
			width: 100%;
			margin-top: 40rpx;
			background-color: white;
			box-sizing: border-box;
			padding: 20rpx;
			.itemselect{
				width: 100%;
				text-align: center;
				.itemtitle{
					font-weight: bold;
					color:#0a0a0a ;
				}
			}
			.pickerbox{
				width: 50%;
				height: 80rpx;
				border: 1rpx solid #1A4f8A;
				text-align: center;
				line-height: 80rpx;
				font-size: 36rpx;
				font-weight: bold;
				margin: auto;
				margin-top: 20rpx;
				 border-radius: 10rpx;
				 
				.picker{
					width: 100%;
					height: 100%;
				}
			}
		}
		.addbox{
			width: 100%;
			margin-top: 40rpx;
			background-color: white;
			box-sizing: border-box;
			padding: 20rpx;
			position: relative;
			height: 300rpx;
			.image{
				width: 200rpx;
				height: 200rpx;
			}
			.add{
				width: 30%;
				position: absolute;
				left: 35%;
				top:70rpx;
				text-align: center;
				.fang{
					margin: auto;
					width: 90rpx;
					height: 90rpx;
					border-radius: 20rpx;
					border: 2rpx solid #e1e1e1;
					line-height: 80rpx;
					text-align: center;
					font-size: 60rpx;
					font-weight: bold;
					color: gray;
				}
				.addtitle{
					margin-top: 10rpx;
					font-size: 30rpx;
					color: gray;
				}
			}
		}
		.pagebtn{
			text-align: center;
			font-weight: bold;
			color: white;
			border-radius: 20rpx;
			margin: auto;
			margin-top: 80rpx;
			width: 80%;
			height: 90rpx;
			line-height: 90rpx;
			background-color: #1A4f8A;
			
		}
	}
</style>